import request from '@/utils/request'

// 查询餐饮菜品列表
export function listRestMenu(query) {
  return request({
    url: '/shop/restMenu/list',
    method: 'get',
    params: query
  })
}

// 查询餐饮菜品详细
export function getRestMenu(id) {
  return request({
    url: '/shop/restMenu/' + id,
    method: 'get'
  })
}

// 新增餐饮菜品
export function addRestMenu(data) {
  return request({
    url: '/shop/restMenu',
    method: 'post',
    data: data
  })
}

// 修改餐饮菜品
export function updateRestMenu(data) {
  return request({
    url: '/shop/restMenu',
    method: 'put',
    data: data
  })
}

// 删除餐饮菜品
export function delRestMenu(id) {
  return request({
    url: '/shop/restMenu/' + id,
    method: 'delete'
  })
}
